#ifndef OPENCVTOQT_H
#define OPENCVTOQT_H
#include <QLabel>
#include <QDebug>
#include <opencv2/core.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <QDebug>
#include <QImage>
#include <QPixmap>

class OpenCVtoQt
{
public:
    OpenCVtoQt();
    static void LabeltoMat(QLabel *label, cv::Mat &mat);
    static QImage cvMatToQImage( const cv::Mat &inMat );
    static QPixmap cvMatToQPixmap( const cv::Mat &inMat);
    static cv::Mat QImageToCvMat( const QImage &inImage, bool inCloneImageData = true );
    static cv::Mat QPixmapToCvMat( const QPixmap &inPixmap, bool inCloneImageData = true );
    ~OpenCVtoQt();
};

#endif // OPENCVTOQT_H
